#coding=utf-8
from utils.httpUtil import http_util


class WeiboService:

    # 读取
    def compressPic(self):
        pass

if __name__ == '__main__':
    payload = {}
    payload.update({"weiboId": 1})

    pic_src1 = "http://img.mp.itc.cn/upload/20170220/4b217f151c584e9982faaf992a924483_th.jpg"
    pic_src2 = "http://img.mp.itc.cn/upload/20170220/83c81a67249a4a69a59406d7f21e3f0b_th.jpg"
    payload.update({"urlSrcList": [pic_src1,pic_src2]})

    url = "http://localhost:9091/api/t1/v1/fastdfs-service/upload/netimage"
    http_util.post_form_data(url, payload)
